package com.gdglc.spring.biz.auth;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.y2.authprj.bean.auth.model.StaffInfo;
import com.y2.authprj.bean.auth.vo.StaffVo;
import com.y2.authprj.exception.BizException;

public interface StaffBiz {
	List<StaffInfo> findAll()throws BizException;
	
	public int addStaff(StaffInfo staffInfo)throws BizException;
	
	public int updateStaff(StaffInfo staffInfo)throws BizException;
	
	public void deleteStaff(Integer id)throws BizException;
	
	public List<StaffInfo> findByStaff(StaffVo staffVo);

	public StaffInfo show(Integer staffId)throws BizException;
	
	public int findByStaffNum(String staffNum)throws BizException;
	
	public StaffInfo findByStaffName(@Param("userName") String userName);
	
	public int findByStaffChname(@Param("chnName") String chnName,@Param("surName") String surName)throws BizException;
	
	public int findByPwd(String pwd)throws BizException;
	//登录验证
	public int verifyLoginByStaffNumAndPwd(@Param("staffNum") String staffNum, @Param("pwd") String pwd) throws BizException;
	//多条件查询 by 辉
	List<StaffInfo> queryByChose(StaffInfo staffInfo) ;
	
	public int updateIPandTime(StaffInfo staffInfo);
	
	public StaffInfo findById(Integer id);

	//多条件查询 by辉
	PageInfo<StaffInfo> queryByPage(StaffInfo staffInfo,Integer pageNo,Integer pageSize);
}
